package com.example.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import pojo.properties;

/**
 * @Configuration:指明当前类是一个配置类，替代之前的spring配置文件
 */
@Configuration
public class myAppConfig {

    //将当前方法的返回值添加到容器中
    @Bean
    public properties properties(){
        System.out.println("bean");
        return new properties();
    }
}
